home *** CD-ROM | disk | FTP | other *** search
/ MacWorld España 14 / macworld_es_14.iso / Share World 14 / Por Categorías / Conversión de archivos / Easy Convert 3.2 ƒ / Read me (Plain text) < prev    next >
Text File  |  1995-07-18  |  10KB  |  191 lines

  1. (This file is an example of setext and it should be read with a setext browser such as Easy View)
  2.  
  3. Introduction
  4. ============
  5. Easy Convert is a small application for character conversion in texts. Since it does the conversion on the target itself, it works very fast. (About 50K per second on a 68030)
  6.  
  7. There are three basic modes of use:
  8. 1) Convert a plain text file
  9. 2) Convert the text in the clipboard
  10. 3) Design and edit filters to be used in conversion
  11.    (Also useful in Easy View and related applications)
  12.  
  13. Various tasks that are simplified by Easy Convert:
  14. * Conversion to uppercase or lowercase
  15. * Simple encryption for protecting documents
  16. * Elimination of diacritical marks such as accents
  17. * Conversion of 8-bit text into 7-bit text for e-mail
  18. * Conversion of files to or from MS-DOS/Windows
  19.  
  20. Although there are similar programs with better user interface, this program may be unique in its ability to convert the clipboard. The high speed, the small size, and scriptability may also be the reasons for preference.
  21.  
  22. CAUTION
  23. -------
  24. “Convert…” command will modify the selected file using the current filter, without asking the user. Unless the filter is invertible, the contents of the file will be changed in an irreversible way. This process cannot be interrupted or reverted.
  25.  
  26. ** APPLY THIS COMMAND ONLY ON FILES WITH A BACKUP COPY **
  27.  
  28. It is very easy to corrupt a file using the wrong filter. Do not use this command before you are familiar with the application and the filter in use.
  29.  
  30. Note that dragging a text file into Easy Convert has the same effect as the Convert command.
  31.  
  32. Author
  33. ------
  34. Written by M. Akif Eyler
  35. Bilkent University, 06533 Ankara, Turkey.
  36.  
  37. e-mail:   eyler@bilkent.edu.tr
  38.  
  39. PLEASE DO NOT COMPLAIN IF YOU LOSE ANY DATA BECAUSE OF THIS PROGRAM. 
  40. YOU HAVE BEEN WARNED A FEW TIMES ALREADY.
  41.  
  42. Special thanks to Ömer Ayzan, for the support and ideas in the earlier versions (1988) of Easy Convert.
  43.  
  44. This program can be distributed freely, for non-commercial purposes, along with the enclosed documents. It may not be sold or exchanged for profit.
  45.  
  46. The program was developed using Think Pascal 4.0.1, as such it may contain portions copyrighted by Symantec.
  47.  
  48. Getting Started
  49. ---------------
  50. First, make a copy of a sample text file. Open Easy Convert. “Encode” should be checked in the Filter menu. Choose “Convert…” from the File menu. Select the previously copied file. When the watch cursor disappears, open that file with an editor. The file has become unreadable! (You may not be able to see the watch cursor for files smaller than 50K)
  51.  
  52. Now, drag the modified text file into Easy Convert (which is the same as choosing Convert command) in Finder. The file should be reverted to its previous contents.
  53.  
  54. Note that this is a special property of the “Encode” filter. With other filters, you may not be able to get back the original contents. Now select the “i -> I” filter from the Filter menu and repeat the process: your file has been converted to uppercase. (No computer program can put the file into the original form, it is gone forever!)
  55.  
  56. To get a feeling of the second tool, copy some text in Finder or an editor. Switch to Easy Convert and choose “Convert Clipboard” from the Edit menu. Go back to Finder and see the contents of the clipboard.
  57.  
  58. What's New in 3.2
  59. -----------------
  60. Easy Convert 3.2 is a scriptable and recordable "fat" application, that should run on Power Macs as well as 680x0 processors.
  61.  
  62. A script dictionary is included.
  63.  
  64. Convert Clipboard command works on styled text.
  65.  
  66.  
  67. Filters
  68. =======
  69. Filters used by Easy Convert are character tables that define the conversion process. Each of the 256 characters can be assigned a value. The assigned value will be used in the conversion process.
  70.  
  71. As a simple example, consider a filter with three assignments:
  72.          A » X      a » A       m » z
  73.  
  74. When applied on two words, we get:
  75.          Adam » XdAz       maze » zAze
  76.  
  77. Search Filters
  78. --------------
  79. The popular browser Easy View uses search filters in its Find command. Three default filters included within Easy View ignores case difference, diacritical marks, or both.
  80.  
  81. These filters can be modified using Easy Convert to suit the needs of different languages. Such a filter can be designed easily for single-byte languages such as Arabic and Hebrew.
  82.  
  83. Mathematical Definitions
  84. ------------------------
  85. Let C denote the ASCII character set from chr(0) to chr(255).
  86.  
  87. A _filter_ is a function f from C to C.
  88.  
  89. I is the _unit_filter_ that maps each char to itself.
  90.  
  91. Filter f is _invertible_ if it is unto.
  92.  
  93. Filter f has a _self-inverse_ if f^2=I.
  94.  
  95. Filter f is _n-circular_ if f^n=I.
  96.  
  97. Clearly, only a very tiny subset of all possible filters will be invertible. 
  98. Remember:  k! « k^k  for k=256.
  99.  
  100. How to Use EC
  101. =============
  102. There are three basic modes of use:
  103. 1) Convert a plain text file
  104. 2) Convert the text in the clipboard
  105. 3) Make and edit filters to be used in conversion
  106.  
  107. File and Edit menus behave in the standard way. Applications (APPL) and filter files (FLTR) can be opened, and their filters will be copied to the Prefs file. (Use “Cut” to remove a filter)
  108.  
  109. Various Save commands will save only the current filter: “Save” in the current file, “Save As…” in a new file, and “Save In…” in an existing file.
  110.  
  111. Only Cut and Clear commands of the Edit menu are enabled. “Cut” will remove the current filter, without putting it in the clipboard. The last filter in a file cannot be removed.
  112.  
  113. Convert…
  114. --------
  115. ** APPLY THIS COMMAND ONLY ON FILES WITH A BACKUP COPY **
  116.  
  117. This command will let the user select a text file. The selected file will be modified using the current filter.
  118.  
  119. THERE IS NO WAY TO INTERRUPT OR REVERT THIS PROCESS.
  120.  
  121. This unsafe behavior was selected on purpose, for three reasons:
  122. 1) It is significantly faster than writing into a new file
  123. 2) The Finder info and other resources (if any) are preserved
  124. 3) We already have a backup somewhere, why waste disk space?
  125.  
  126. Note that dragging a text file into Easy Convert has the same effect as the Convert command.
  127.  
  128. Convert Clipboard
  129. -----------------
  130. This command will convert the text in the clipboard. This is the recommended way to make conversions in formatted data, such as Excel’s. Any time the little Clipboard window is made active, the clipboard is converted automatically. However, a converted clipboard will not be converted again, even if the filter is changed.
  131.  
  132. Here is the recipe for making conversions in sequence:
  133. 1) Select the proper filter and choose “Convert Clipboard” menu command. The little Clipboard window will be shown.
  134. 2) Switch to the application (e.g. Excel).
  135. 3) Select and copy some data (at most a few pages).
  136. 4) Switch to Easy Convert. _Don’t do anything._
  137. 5) Switch back to the application and choose Paste command. The original selection will be replaced by converted data. 
  138. Repeat steps 3-5 as many times as necessary.
  139.  
  140. Design Filter
  141. -------------
  142. When you choose “Edit Filter” command, the current filter is presented in a tabular form. The black squares indicate the assignments. For instance, the “A » X” conversion can be obtained by dragging “X” into “A”. A black “X” will appear where “A” should be. 
  143.  
  144. Dragging a white square will add/replace new assignments. Dragging a black square out of the window will clear an assignment. Multiple selections are not allowed. Modifier keys are not functional.
  145.  
  146. Compatibility
  147. -------------
  148. The first version of this program was written in 1988 on a Mac Plus using Turbo Pascal. The current version has basically the same conversion routines unmodified. The user interface has been enhanced significantly, without losing compatibility.
  149.  
  150. Easy Convert 3.1 requires System 7.
  151.  
  152. Versions 3.0 and 3.1 were compiled using Think Pascal.
  153. PowerPC portion of Version 3.2 was compiled using Metrowerks Pascal, part of CodeWarrior distribution.
  154.  
  155. Easy Convert Prefs
  156. ==================
  157. “Easy Convert Prefs” must be in the same folder as the application (or in the system preferences folder) for proper utilisation. This file contains the default filters initially. Any filters in the files opened later will be added to the Prefs.
  158.  
  159. Filters are always accessed by name, resource numbers are never used or shown to the user. If two filters have the same name, the first one will be used.
  160.  
  161. These filters should be sufficient for most uses. Another file of filters is included to illustrate how it could be utilized to solve problems of another language.
  162.  
  163. Encode
  164. ------
  165. This is one of the two invertible filters in the package, thus it is quite safe to use. (Actually, the inverse filter is itself. Converting a given text _twice_ with this filter will result in the original text) This is the reason why it is the default filter on startup.
  166.  
  167. This filter gives you very efficient protection on the sensitive parts of your documents.: just copy the portion that you want to encode, choose “Convert Clipboard”, switch back to the application, and paste the encoded data. It is not the best method to protect data, but quite satisfactory for many needs.
  168.  
  169. Another possible usage might be in electronic communication, where the parties first choose a common filter, and then use partial or complete encryption.
  170.  
  171. Stronger encryption can be obtained by using control characters in the assignments. The use of 3-circular filters may also increase the level of protection. However, the use of 3-circular filters is not practical on the clipboard.
  172.  
  173. e-mail
  174. ------
  175. * ROT-13    Another invertible filter with similar function as Encode. Compatible with other ROT-13 software.
  176.  
  177. * 8 to 7    A practical filter for e-mail that has to go through 7-bit channels. All diacritical marks are removed.
  178.  
  179. Case Conversion
  180. ---------------
  181. * É -> e     A simple lowercase filter which converts each letter into the corresponding lowercase letter. Diacritical marks are removed.
  182.  
  183. * i -> I     A simple uppercase filter which converts each letter into the corresponding uppercase letter. Diacritical marks are retained.
  184.  
  185. Mac <==> PC
  186. -----------
  187. These two filters were designed for Turkish text, which may serve as examples for other languages other than English. They are needed by the “Mac <==> PC” script application which calls Easy Convert for character conversion and CRLF (not included) for CR/LF conversion. 
  188.  
  189. The main source of difficulty in Turkish is “I” and “i” being distinct letters. The diacritical marks are also handled in a non-standard way: “c” and “ç” are different letters, but “i” and “î” are the same.
  190.  
  191.